package com.njwb.day15.zqzb.job.Test01;

public class cost {
   private String user;
   private int cost;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }
    public cost(String user, int cost) {
        this.user = user;
        this.cost = cost;
    }

    @Override
    public String toString() {
        return "用户='" + user + '\'' +
                ", 花费='" + cost +"\n";
    }
}
